WPF and Silverlight Edition Basic Library > Combo Box > ComboBox Features > Drop-Down List > Changing the Drop-Down List Direction |
By default, when the user clicks the C1ComboBox control's drop-down arrow at run-time, the drop-down list will appear below the control; if that is not possible, it will appear above the control. You can, however, change the direction in which the drop-down list appears by setting the DropDownDirection property to one of the following four options:
Event | Description |
BelowOrAbove (default) | Tries to open the drop-down list below the header. If it is not possible tries to open above it. |
AboveOrBelow | Tries to open the drop-down list above the header. If it is not possible tries to open below it. |
ForceBelow | Forces the drop-down list to open below the header. |
ForceAbove | Forces the drop-down list to open above the header. |
You can change the drop-down list direction using one of the following methods:
Complete the following steps:
XAML Copy Code <c1:C1ComboBox Width="249" DropDownDirection="ForceAbove">
Complete the following steps:
Visual Basic Copy Code C1ComboBox1.DropDownDirection = ForceAbove
C# Copy Code C1ComboBox1.DropDownDirection = ForceAbove;
Complete the following steps: